<?php
	session_start();
	require('../core/config.php');
	if(isset($_SESSION['islogin'])){
		$config = getConfig();
		$configs = array();
		foreach($config as $value){
			$configs[$value['name']] = $value['value'];
		}
		$topmenu = getTopMenuData();
		$smarty->assign("topmenu",$topmenu);
		$smarty->assign("configs",$configs);
		$smarty->display($_config['root']."admin/html/settings.html");
	}else{
		include('login.php');
	}
?>